The number of people in this problem is 13, herm and his 12 followers. The secret handshake involve three different roles, so the order of member is important. Every member only able to do 1 roles for every handshake. The number of possible ways for the handshake would be:
13!/(13-3)!= 13*12*11= 1716 ways