< Previous Next > 1426. Counting Elements (Easy) Related Topics [Array] Hints Hint 1 Use hashset to store all elements. Hint 2 Loop again to count all valid elements.