fix wrong dataset counter

We have to filter per dataset content-type, otherwise the counter is incremented with dataset resources as well.