[C] Refactoring: move counts access methods into a single location.