function F_instances_of(x,str){
var i,t=0;
for(i=0;i<str.length;i++)
if(str.charAt(i)==x) t++;
return(t)}
