Given an array of integers nums and a target, return how many times target appears in the array.
Count Occurrences (Set 4) — the data. This set runs 4 cases: nums holds arrays of 18–27 items, with values from 1 to 5; target ranges over 2–5. The hidden cases are the largest of the set.