<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def count(cls, *criteria, **filters):
 """Count how many comments."""

        return cls.query.filter(*criteria).filter_by(**filters).count()