For each character in input strings , increment count in the corresponding count array
for ( i = 0 ; i < str1 . length && i < str2 . length ; i ++ ) { count1 [ str1 [ i ] . charCodeAt ( 0 ) ] ++ ; count2 [ str1 [ i ] . charCodeAt ( 0 ) ] ++ ; }