I was writing a code to send emails through Python using smtplib and was trying to make a counter to see how many mails I have sent before I perform a KeyboardInterrupt.