More num_examples to num_categories changes

This is being done to match Carmel's changes on the pages branch
of streambed.