How do i add relationship count in REST API calls?