using (ScriptAPI) { count = AddByte("charcount"); for(i=0; i