Como testar quantos de um personagem estão em um java de cordas
int count = string.length() - string.replaceAll("g","").length()
Obedient Ox
int count = string.length() - string.replaceAll("g","").length()