I have passed all the information of multiple text cases to mongodb I am trying to plot graph in matplotlib by taking data from mongodb. I need to query the db to get number