On the surveillance for animal diseases in small herds