https://www.sourcebaran.com/learn/peewee_counting_and_aggregation/