Added validation for number of facets.