Codice PHP:
echo substr_count($stringa,$carattere); 
é proprio quello che cercavo... grazie