<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_num_similar_objects(self, obj):
 """Get any statement lines which would be considered a duplicate of obj"""

        return StatementLine.objects.filter(
            date=obj.date, amount=obj.amount, description=obj.description
        ).count()