Add countspikes functionality.

Countspikes changed to work with key/payload format required by
ALM tracking.  The aim should definitely be to move toward more
neural processing of the visual input.  The retina now transmits
spikes with a different key to sensor data.