counting and matching test