CMIMC 2018 Team Problem 5.1

How many ordered triples (a, b, c) of integers satisfy the inequality

a^{2}+b^{2}+c^{2} \leq a+b+c+2 ?