Count number of rows in a many-to-many relationship (SQLAlchemy),session.query(Entry).join(Entry.tags).filter(Tag.id == 1).count()