Refactored checkCounterNumber to checkRange for argument range checks. This commit renames checkCounterNumber to a more generic name, checkRange, to reflect its updated functionality. It now supports checking the provided argument against a range of values instead of just specific counter numbers. Bug: 293811969 Test: TH Change-Id: I203afb71b68e892fd024f7935cc18ca5ae43f156