public static int spaceCount(String s) {
		if (s.length() == 0) {
			return 0;
		}
		int count = 0;
		char c[] = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			if (c[i] == ' ') {
				count++;
			}
		}
		return count;
	}