How many times does a character appear?

Would the logstash kv filter be able to do this?