Let $X =S^4$ where $S$ can be any non-empty set. For all $q = (x_1,x_2,x_3,x_4) \in X$ and $p = (y_1,y_2,y_3,y_4) \in X$ set
$$d(q,p) = \#\{j: x_j \neq y_j \},$$
the number of components in which $p$ and $q$ differ.
Is $d$ a metric on $X$?
I think I solved this problem with discrete metric space proof approach, but if $q,p,t\in X$, I don't know how to prove the triangle Inequality
$$ d(q,p) \le d(q,t) + d(t,p).$$