A long int would provide exactly the same result on a 32-bit machine. Of course, if it's a 64-bit machine, then using long on Linux would make it a 64-bit number, so sufficient for the count.
Changing it to unsigned will help until the number wraps multiple times.
--
Mats