İ couldnt create function to count the number of occurence : i wont create function to count the number of occurence in an array.İ cant compile and run it.
Compiler gives the error:
The method occurence(int[]) in the type countOfOccurence is not applicable for the arguments (int)

public class countOfOccurence {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] number = {15,16,14};
		
		System.out.print(occurence(number[15]));
		
		
		
		
	}
	
	public static int occurence(int[] number) {
		
		int count = 0;
		for(int i = 0 ; i < number.length; i++) {
			
			for(int k = 0 ; i < number.length; i++) {
				if(number[k] == number[i]) {
					
					count++;
					
				}
			}
			
		}
		return count;
		
	}

}