Unfortunately, that'll require actually running the query. This is generally deferred until you actually click on the item in question.

So how do you generate the list of genres? Couldn't that query also tell you the count of each? (er, SELECT genre, COUNT(fid) FROM * GROUP BY genre, or something)

Peter