How can I add a simple counter column in a pandas dataframe which resets when the date changes? The date is a to_datetime object. Here is the desired result: