let count_by = func column rel -> ( rel group {column} (aggregate {total = count this}) sort {-total} )