UNION
Select Count (*) from dataTable
group by (nodeID, attr2, class)
…
group by (nodeID, attrm, class)