<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(self) -> int:
        '''Return number of connections.'''
        counter = 0

        for pool in self._host_pools.values():
            counter += pool.count()

        return counter