That's it!
A nice question. It should be "ни", of course. But since there is absolutely no difference in pronunciation between "не" and "ни" (both of them are unstressed), many people often confuse them in writing. Try this discussion:
Скажите пожалуйста, как правильно - "сколько волка НЕ