Added docblock to count method