how to get the quantity of drawn triangles or points in OpenGL?

In OpenGL,is there a build-in function that can get the quantity of drawn triangles or points?

I want to look for the number of points or triangles actually drawn on-screen after clipping.