function maxStringCount(str) {
var obj={};
for(var i=0;i<str.length;i++){
var key=str[i];
if(obj[key]){
obj[key]++;
}else{
obj[key]=1;
}
}
var maxCount=0;
var maxString="";
for(var key in obj){
if(maxCount<obj[key]){
maxCount=obj[key];
maxString=key;
}
}
return maxString+","+maxCount;
}