Number of generators of ideals