Fix ORM count to old version