add count() method