def get_session_count():
 global HOUSE
 cnt = 0
 if (len(HOUSE.keys()) > 0):
  for key in HOUSE.keys():
   for entry in HOUSE[key]:
    if HOUSE[key][entry].running:
     cnt += 1
 return cnt

def get_session_count ( ) : global HOUSE cnt = 0 if ( len ( HOUSE . keys ( ) ) > 0 ) : for key in HOUSE . keys ( ) : for entry in HOUSE [ key ] : if HOUSE [ key ] [ entry ] . running : cnt += 1 return cnt
return a count of the number of running sessions .