make counting integer long enough