completed character counting exercise part 1