Before you begin, it's important to know the shape and structure of the event you're trying to query, especially if this is your first time using this feature.
...
This is an aggregate query, which should be reflected in selected from the Type drop down sectionmenu. This will place a wrapper around the query when it's ran. A find option is available also, but we won't be using that to begin with here.
Prompting User Input
Note the 'limit' value:
"$limit":"#n#"
...