def get_partition_count(self):
if not self.partitions:<EOL><INDENT>self._get_partition_count_blocking()<EOL><DEDENT>return len(self.partitions)<EOL>
Returns the number of partitions.

:return: (int), the number of partitions.