On OSX, the counter format is %lli, not %li