Fixed null and not-null filter in scan, and added a --count-delay option, to sleep between scan calls.