lettercount with custom lowercase function