Added the count class method