public int getM(String word){

	int m = 0;
	
	String vc = "";
	if(word != null){
	    for (int i = 0; i < word.length(); i++) {
		char charAtIndex = word.charAt(i);
	
		char vcChar =vcTrans(charAtIndex);
	
		if(vcChar == 'y'){
		    if(i>0 && vcTrans(word.charAt(i-1)) == 'c'){
			vc.concat("v");
		    }else{
			vc.concat("c");
		    }
		}else{
		    // String s = String.valueOf(word.charAt(i));
		    // String ns =(String) vcTable.get(s);
		    String ns = String.valueOf(vcTrans(word.charAt(i)));
		    vc.concat(ns);
		}
	
	    }
         
	    for (int i = 0; i < vc.length()-1; ++i) {
		if ((vc.charAt(i) == 'v') && (vc.charAt(i+1) == 'c')) {
		    m++;
		}
	    }

	}
	return m;

    }