I'm thinking this is how you would do it: Have three counter variables:
sCount
oCount
hCount
String input = file.readLine();
for (int i=0; i<input.length(); i++)
{
if (input.charAt(i) == "s")
{
sCount++;
}
else if (input.charAt(i) == "o")
{
oCount++;
}
else if(input.charAt(i) == "h")
{
hCount++;
}
}
Of course that String is after you deal with parsing the name of the player
Don't know if that will help