restrict types count to resources in this graph