in reply to best way to keep a simple count?

For a proven wheel for this solution, take a look at File::CounterFile - It's not just for web counters! :-)

 

perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"