public static int countPairs(int value){
		int counter = 0;	
		for (int i = 0; i < 31; i++) {
			if ( ((value & (1<<i)) != 0) && ((value & (1<<i-1)) !=0 )) {
				counter++;
				} 
		}
			return counter;
	}