On the number of samples to be drawn in particle filtering