How would I get the total count of a limited result with SQLAlchemy. I am currently using Postgres so I know I can use windowed functions. I basically want to know how I would write the following in SQLAlchemy:
SELECT foo
,count(*) OVER() AS full_count
FROM bar
ORDER BY <some col>
LIMIT <pagesize>
OFFSET <offset>