Samsung SDS interview question

Write a program for python individual string count in a word