If your survey is set up to allow for duplicate responses, the survey count will show the total number of responses to the survey. On the other hand, the query tool is looking at the number of people who have taken the survey, thus resulting in a different number.