Admin panel: Configuration --> My Store --> Show Category Counts.