Fix $inlinecount parsing which misplaced the key and skipped the value

This was the output when parsing '$select=Name&$inlinecount=allpages'
    {
      "0": "$inlinecount=",
      "$select": [
        "Name"
      ]
    }
While the expected output was
    {
      "$inlinecount": "allpages",
      "$select": [
        "Name"
      ]
    }

Allow only 'allpages' and 'none' values according to the specification