Optimize call counting