code: def count_siblings(self, partitions):
          
          count = sum(
              int(self.topic == partition.topic)
              for partition in partitions
          )
          return count
docs: Count siblings of partition in given partition-list.
  
          :key-term:
          sibling:    partitions with same topic