public int count(int[] rating)
	{
		int count = 0;
		for (int i = 1; i < rating.length; i++) {
			int old=rating[i-1];
			int rat=rating[i];
			if (rat >= 1200 && old < 1200) {
				count++;
			} else if (rat < 1200 && old >= 1200) {
				count++;
			}
			old = rat;			
		}
		return count;
	}