'Count loggedin connections, alternatively count all connections.
Args:
include_unloggedin (bool): Also count sessions that have
not yet authenticated.
Returns:
count (int): Number of sessions.'

def count_loggedin(self, include_unloggedin=False):

    return len(self.get_sessions(include_unloggedin=include_unloggedin))
