How do i add relationship count in REST API calls?

in this example they have showed populating category under articles
but in my case i want to get the articles count from category