 
 module.exports =
 class SymbolStore
+  count: 0
+
   constructor: (@wordRegex) ->
     @clear()
 
   clear: ->
     @symbolMap = {}
-    @symbols = []
 
-  getLength: -> @symbols.length
+  getLength: -> @count
 
   getSymbol: (symbolKey) ->
     symbolKey = @getKey(symbolKey)

    symbol = @symbolMap[symbolKey]
    unless symbol?
      @symbolMap[symbolKey] = symbol = new Symbol(symbolText)
      @addSymbolToList(symbol)

    symbol.addInstance(editorPath, bufferRow, scopes)



  symbolsForConfig: (config) ->
    symbols = []
    for symbolKey, symbol of @symbolMap
      symbols.push(symbol) if symbol.appliesToConfig(config)
    symbols

