Counting triangles in power-law uniform random graphs