Keep getting this error: bash: syntax error near unexpected token `{'

I get this error: bash: syntax error near unexpected token `{’
I am typing this in the terminal, which is prompting the error: sample_training.zips.find( { “pop” : { $lt : 1000 } }).count()
What am I doing wrong?
Thanks in advance!

It means you are typing a mongo shell command into bash shell. You must connect to your cluster with the mongo command first.