RESTFul Event Count Aggregator written in Flask and SQLite