triangle counter