V4. Please show code example how to return count function in gql?

How to count relations?