Find the occurrences of a character in an input string
Pyth, 3 bytes

/ww


Example run:

$ pyth -c '/ww'
sdhkfhjkkj
k
3


Of course, the user could input more or less than 10 letters on the first input, but we don't need to worry about what happens when the user violates the spec.