3 added 116 characters in body
source | link

Python 2, 77 7272 65 bytes

lambda a:map([len(set(a[i:i+3]t))for it in rangezip(0,len*[iter(a),3]*3)].count,(1,2))

Try it online!Try it online!

7 bytes saved via a clever trick from xnor

Python 2, 77 72 bytes

lambda a:map([len(set(a[i:i+3]))for i in range(0,len(a),3)].count,(1,2))

Try it online!

Python 2, 77 72 65 bytes

lambda a:map([len(set(t))for t in zip(*[iter(a)]*3)].count,(1,2))

Try it online!

7 bytes saved via a clever trick from xnor

2 deleted 4 characters in body
source | link

Python 2, 7777 72 bytes

lambda a:map(g[len(a).count,set(1,2a[i:i+3]))
g=lambdafor a:ai and[lenin range(set0,len(a[:3]a),3)]+g(a[3:].count,(1,2)or[])

Try it online!Try it online!

Python 2, 77 bytes

lambda a:map(g(a).count,(1,2))
g=lambda a:a and[len(set(a[:3]))]+g(a[3:])or[]

Try it online!

Python 2, 77 72 bytes

lambda a:map([len(set(a[i:i+3]))for i in range(0,len(a),3)].count,(1,2))

Try it online!

1
source | link

Python 2, 77 bytes

lambda a:map(g(a).count,(1,2))
g=lambda a:a and[len(set(a[:3]))]+g(a[3:])or[]

Try it online!