the frequency() method is supposed to return the number of occurrences of target within the array. identify the location of any static int frequency(int[] nums, int target){ int index; int count