get rid of # prefixed entries in history
print output of delete line to check if its working as expected
add counter and print it during deletion loop
print history one entry per line and label history count better
add similar counter to print history line by line
add collections module instantiate a collections Counter
add counter items to list for sorting