Added GetRelatedDataCount