diff --git a/Programs/P06_CharCount.py b/Programs/P06_CharCount.py
index ae13486..35a94b2 100644
--- a/Programs/P06_CharCount.py
+++ b/Programs/P06_CharCount.py
@@ -4,14 +4,11 @@
 def charFrequency(userInput):
     '''This fuction helps to count the char frequency in the given string '''
     userInput = userInput.lower() #covert to lowercase
-    dict = {}
-    for char in userInput:
-        keys = dict.keys()
-        if char in keys:
-            dict[char] += 1
-        else:
-            dict[char] = 1
-    return dict
+    count=0
+    while userInput !='':
+        count=userInput.count(userInput[0])
+        print(userInput[0],": ",count )
+        userInput=userInput.replace(userInput[0],'')
 
 if __name__ == '__main__':
     userInput = str(input('Enter a string: '))