Craft query count. Here’s how to implement it: Basic Count Query.