count was removed see: https://mongoosejs.com/docs/migrating_to_8.html#removed-count. GitOrigin-RevId: 308c8f4b681269c29669c45b5f2022404b3af463