public int countLayouts(String bricks) {
		int k[] = new int[26];
		int colors = 0;
		for (int i = 0; i < bricks.length(); i++) {
			int j = bricks.charAt(i) - 'A';
			k[j]++;
			if (k[j] == 1) {
				colors++;
			}
		}
		if (colors == 2)
			return 2;
		if (colors == 1)
			return 1;
		return 0;
	}