Added codegen triangle counting.