<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def atlas_peer_get_request_count( peer_hostport, peer_table=None ):
 """ How many times have we contacted this peer? """

    with AtlasPeerTableLocked(peer_table) as ptbl:
        if peer_hostport not in ptbl.keys():
            return 0

        count = 0
        for (t, r) in ptbl[peer_hostport]['time']:
            if r:
                count += 1

    return count