update 3 to support compute TriplesCount

SWEET still cannot.
partial translation