Enumerating combinatorial objects with limited sub-configurations