I couldn't find any examples online. How do I extract count from this? Can I make the return type as List in my repo and get count at the same time?