Count Queries have two types, counting at root and counting at other levels. If you want to count posts with certain features, you could use count(aggregate) queries at root.
In your case, it will look like this:
aggregatePosts(filter:/*Apply some filter*/){
count
}
This will report count of all Posts satisfying the given filter.