Add GetDomainCount method. Ref #24