Building a Lambda Atomic Counter

I wanted to build an atomic counter to keep metrics of site visits and actions. Originally I started storing all the log messages and I was going to write some queries to summarise it. However, I decided that I didn’t need all the underlying data, at least not in this format, it’s stored elsewhere, so…