Updated the method used to counts