How do i add relationship count in REST API calls?

Without custom controller or middleware