Luxoft interview question

write program to count occurance of a character using java 8