could someone help me with this.. thanks in advance!!!

Write a program that allows you to input a string. Your program will count and extract and display the number of upper case letters and lower case letters.
Sample output:
Enter a string: Hello World
Upper case letters: 2 - HW
Lower case letters: 8 elloorld