Given an integer array nums and an integer k, return the number of good subarrays of nums.
A good subarray is a contiguous, non-empty subarray of nums with exactly k different (distinct) integers.
For example, [1,2,3,1,2] has 3 different integers: 1, 2, and 3.