query to count the number of rows in a table in sqlalchemy
snippet in sql

query to count the number of rows in a table in sqlalchemy

user3075

UserImage.query.filter(UserImage.user_id == 1).count()