def count_calls(callers):
 nc = 0
 for calls in callers.itervalues():
  nc += calls
 return nc

def count_calls ( callers ) : nc = 0 for calls in callers . itervalues ( ) : nc += calls return nc
sum the caller statistics to get total number of calls received .