added rel count method