corrected purpose of triangle counting