Counting triangles in a graph using Hadoop