public static int numberOfFactors(int n){
		if(n == 1)
			return 1;
		int num = 2;
		for(int i = 2; i < Math.sqrt(n); i++){
			if(n % i == 0)
				num += 2;
		}
		int r = (int)(Math.sqrt(n));
		if(r * r == n)
			if(n % r == 0)
				num++;
		return num;
	}