view: add func proto of count_xxxs_learnt