Back
Close

Can you count my String?

Statement

 Goal

Given is a String with a sentence. You need to code a program that will count every unique character and how often it repeats in order how they appear. Uppercase characters counts as lower! spaces are ignored!
Input
Line1: An String with a sentence to split and count.
Output
Line1: All unique chars printed with the amount how often they were in the input. | (Uppercase characters counts as lower! spaces are ignored!) | Format: Input: "aBcbCc" Output: "a:1 b:2 c:3" etc.
Constraints
5 < String < 250
Example
Input
Hi there
Output
h:2 i:1 t:1 e:2 r:1

Game modes
Fastest, Shortest, Reverse

Test cases
Intro Test Test
Input
Hi there
Output
h:2 i:1 t:1 e:2 r:1

A bit harder Validator
Input
This is a harder test case
Output
t:3 h:2 i:2 s:4 a:3 r:2 d:1 e:3 c:1

What is this? Test
Input
SGV5LCB5b3UgZm91bmQgbWUuIEkgYW0gYW4gRWFzdGVyIEVnZw==
Output
s:1 g:7 v:3 5:2 l:1 c:1 b:4 3:1 u:3 z:3 m:2 9:1 1:1 q:1 w:5 i:2 e:2 k:1 y:3 0:1 4:1 r:1 f:1 d:1 n:1 =:2

Symbols Test Validator
Input
How are you today Sir?
Output
h:1 o:3 w:1 a:2 r:2 e:1 y:2 u:1 t:1 d:1 s:1 i:1 ?:1

Random String Test 1 Test
Input
}Ap`^f[JB%L?EgMp
Output
}:1 a:1 p:2 `:1 ^:1 f:1 [:1 j:1 b:1 %:1 l:1 ?:1 e:1 g:1 m:1

Random String Test 2 Validator
Input
:=eQa;j)JH\Cjz#gQ_&UY\XW
Output
::1 =:1 e:1 q:2 a:1 ;:1 j:3 ):1 h:1 \:2 c:1 z:1 #:1 g:1 _:1 &:1 u:1 y:1 x:1 w:1

Lorem Ipsum Test
Input
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Output
l:7 o:11 r:9 e:13 m:10 i:11 p:4 s:7 u:8 d:9 t:11 a:11 ,:3 c:2 n:7 g:2 y:2 v:2 b:1 q:1 .:1

Ultimate Test Validator
Input
fHp#Zgn]*$En)+e$6(Ap+Kez2m:Q/)EkH'CuF6y!+)th&?T[p@/a2(BH~CSTRb@Y+;?fh&&FPDV'txGKY-FTa+r.J-B$:#{-F<~p`T
Output
f:6 h:5 p:5 #:2 z:2 g:2 n:2 ]:1 *:1 $:3 e:4 ):3 +:5 6:2 (:2 a:3 k:3 2:2 m:1 ::2 q:1 /:2 ':2 c:2 u:1 y:3 !:1 t:6 &:3 ?:2 [:1 @:2 b:3 ~:2 s:1 r:2 ;:1 d:1 v:1 x:1 -:3 .:1 j:1 {:1 <:1 `:1

Solution language

Solution

Stub generator input