The Number of Variables When Searching for an Optimum