This patch implements the $countdrivers system function. It does not yet support wires connected to islands (and outputs a suitable "sorry" message when this is detected).