I encountered a TypeScript error when trying to use _count inside a select query for an optional relation. I have created a minimal reproduction of the issue here: https://stackblitz.com/edit/stackblitz-starters-hf3myeuc?file=app%2Fpage.tsx