On the Number of Generators of an Invertible Ideal