Broadridge interview question

Write a program to count commas in a paragraph