Optimize the process counter