Print with count
Traverse history implementation