counting triangles of node