count method

added count method