<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_siblings(self, partitions):
 """Count siblings of partition in given partition-list. :key-term: sibling: partitions with same topic """

        count = sum(
            int(self.topic == partition.topic)
            for partition in partitions
        )
        return count