Traingle counting now working.