Its quite evident that a main category includes all what is under it PLUS all under the sub-categories!
Same thing for the number of items in the category side box. It should count all the items under the category including its sub categories!
Now, if there's nothing in the main category, it shows no value even if there's a lot of photos in the subs!!
I'm not sure its a whish or a bug by the way...