Which number should you put instead of the question mark?

Question: #567
23
17
31
12
Anagram solving is a challenging task that can easily increase your brain efficiency! Try it right now!