add count to relations