So this would look like 

```
if day not in days:
    counter += 1    
    days[day] = {
        'counter': counter,
        'successful': 0,
        'failed': 0
    }  

Again, this only works if the logs come back in order by date.