count number of pending replies and refuse to process queries if queue gets too big