Updated triangle counting with proper hash under value.