add count() for task