Added count class method