parameters: (self)
return_statement: return self.order_by().exclude(inventory_sources__source='controller').values('name').distinct().count()
docstring: Return count of active, unique hosts for licensing.
          Construction of query involves:
           - remove any ordering specified in model's Meta
           - Exclude hosts sourced from another Tower
           - Restrict the query to only return the name column
           - Only consider results that are unique
           - Return the count of this query
docstring_summary: Return count of active, unique hosts for licensing.
          Construction of query involves:
           - remove any ordering specified in model's Meta
           - Exclude hosts sourced from another Tower
           - Restrict the query to only return the name column
           - Only consider results that are unique
           - Return the count of this query
docstring_tokens: Return count of active unique hosts for licensing . Construction of query involves : - remove any ordering specified in model s Meta - Exclude hosts sourced from another Tower - Restrict the query to only return the name column - Only consider results that are unique - Return the count of this query
function: def active_count(self):
          """Return count of active, unique hosts for licensing.
          Construction of query involves:
           - remove any ordering specified in model's Meta
           - Exclude hosts sourced from another Tower
           - Restrict the query to only return the name column
           - Only consider results that are unique
           - Return the count of this query
          """
          return self.order_by().exclude(inventory_sources__source='controller').values('name').distinct().count()
function_tokens: def active_count ( self ) : return self . order_by ( ) . exclude ( inventory_sources__source = 'controller' ) . values ( 'name' ) . distinct ( ) . count ( )