public int getCounts2(int number) throws Exception {
		int sum = 0;
		for (int i = 0; i <= Math.sqrt(number) + 1; i++) {
			int i2 = i * i;
			int j2 = number - i2;
			if (j2 < i2) {
				break;
			}

			int j = (int) Math.sqrt(j2);
			if (j2 == j * j) {
				sum++;
			}
		}
		return sum;
	}