Matching residency numbers to the workforce needs