Added correct implementation of point counter