Changed triangle counting value to a long.