Removing unused private method setCount()