466. Count The Repetitions (Hard)