title: MongoDB - SyntaxError: illegal character
body: <p>I'm trying to run a sum query in MongoDB that counts all the zip codes in three states, but keep running into this:</p>
  
  <pre><code>SyntaxError: illegal character
  </code></pre>
  
  <p>Here's an example of my data:</p>
  
  <pre><code>{ "_id" : "80002", "city" : "ARVADA", "loc" : [ -105.098402, 39.794533 ], "pop" : 12065, "state" : "CO" }
  { "_id" : "80003", "city" : "ARVADA", "loc" : [ -105.065549, 39.828572 ], "pop" : 32980, "state" : "CO" }
  </code></pre>
  
  <p>Here is my query:</p>
  
  <pre><code>db.population.aggregate([ 
  { $match: { $and: [ {“state”:”CA”}, { “state”:”AZ”}, {“state”:”NM”}] } },
  {$group : {_id: null, count:{$sum:1}}}
  ])
  </code></pre>
  
  <p>I'm trying to count all the zip codes in three states so is this a good query to do this? If not how do I do this?</p>
  
  <p>Any help is appreciated!</p>