Peewee will wrap your query in an outer query that performs a count, which results in SQL like: