Extended counter from doublebyte unsigned int to quadruplebyte signed long

Hello,

As I found the current counter size (two bytes) a bit limiting, I made it a 4 byte counter.

I also made it signed, as that seems natural for a wheel encoder value, with 0 in the center.

All comments welcome.

Kristof