precompile counter