stock CountChars(txt[],ch='~'){ new d,cnt; while(txt[d] != EOS) { if(txt[d] == ch) cnt++; d++; } return cnt;}