It's pretty stupid to say count to six, since it's actually count to 3, major 3. from the dominant chord you're substituting.

It works since half diminished chord (min7b5) can be seen as a rootless dom9.