If you only want to know how many tracks are in a certain category (rating, artist, whatever), you could use the column browser. If you have "Show track count for each item" ticked in preferences, it'll show you in the column browser how many there are. You can change the contents of the column browser by right clicking on the header.
Bold words in my posts are links unless expressly stated otherwise. Have fun with them!