The function takes a string input and returns a numerical output based on the frequency of certain letters in the input string.

