Move processHandledCount to the end of file