Added count() function