parameters: (self)
return_statement: return c.fetchone()['count']
docstring: Returns:
              int: count of open channels
docstring_summary: Returns:
              int: count of open channels
docstring_tokens: Returns : int : count of open channels
function: def n_open_channels(self):
          """
          Returns:
              int: count of open channels
          """
          c = self.conn.cursor()
          c.execute('SELECT COUNT(*) as count FROM `channels` WHERE `state` = ?',
                    [ChannelState.OPEN.value])
          return c.fetchone()['count']
function_tokens: def n_open_channels ( self ) : c = self . conn . cursor ( ) c . execute ( 'SELECT COUNT(*) as count FROM `channels` WHERE `state` = ?' , [ ChannelState . OPEN . value ] ) return c . fetchone ( ) [ 'count' ]