Add frequency count to extra::stat. #8281