bonus = 0 for _ in range(5): a,b,c=sorted(map(int,input().split())) if a + b> c: bonus += 1 print(bonus)