poll_voicemail=1
poll_interval=120
will check voicemail counts every 120 seconds.
Normally you do not need to to this, it is only needed if you access voicemail from a web application that erases voicemail directly from disk without notifying asterisk about it.
Best regards,