FDM Group Interview Question

Given a string, count how many of a certain letter appears How would I solve this problem