New way of comuputing count
no mutex anymore (for a better performance)
each thread computes local relative statistics
at the end of each iteration compute global statistics