count(*) is the same as count on any column from t...
# exposed
t
count(*) is the same as count on any column from that table (if you don't use group by), so you can use something like:
Copy code
val countCol = table.columns.first().count()
val count = table.slice(countCol).selectAll().single()[countCol]
Also you can write custom ext.function:
Copy code
fun Table.count() = columns.first().count()