One measurement decides most of it
Add up the widths of the teeth in an arch, then measure the length of arch available to hold them. The difference between those two numbers is the whole problem, expressed in millimetres. A negative number is crowding: the teeth need more room than exists, so they overlap and rotate to fit. A positive number is spacing: there is more arch than tooth, and the surplus shows up as gaps.
This is why the two are treated as one topic. Both are solved either by changing the arch, which is orthodontics, or by changing the width of the teeth, which is restorative. Crowding usually calls for making a little space; spacing usually calls for filling it. The underlying question is identical.