added count method