Write a javascript code

Job ID: 30638613

Budget: $10 – $30 CAD

write a javascript function where when the user clicks a button, the input is taken from two text boxes(one a sentence and the other a letter) and the function prints how many letters(from the letter box) are there in the sentence box.
Related categories: PHP JavaScript CSS HTML5 jQuery / Prototype