added a function on eth to count the number of services in each domain