<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_replica(self, partition):
 """Return count of replicas of given partition."""

        return sum(1 for b in partition.replicas if b in self.brokers)