If the albums have the same number of tracks, then yes, it'll work. I think you're asking if iTunes can automatically know he total number of tracks, and the answer is no. Perhaps someone has written an AppleScript to do this - otherwise, you'll have to do it by album. Though, unless your tracks are meticulously labeled, even a script might not be accurate.