Fix poly counter with OpenMP