Cognizant interview question

Write Python code for finding the length of a sentence without spaces.