Passing in query + getting number of processors