Bounds on the number of generators of a module