>>215
最後に
return 0;
}
が抜けている。

count[ch]++
の後ろに一文字足りない。