changed the purpse of the code, from now it counts the number of each occurence and displays it. had to use int array instead of comparing 2 strings