Subgraph count of order 3 (path)