code: def service_count(self, block_identifier: BlockSpecification) -> int:
          
          result = self.proxy.contract.functions.serviceCount().call(
              block_identifier=block_identifier,
          )
          return result
docs: Get the number of registered services