It is only and only the diameter that counts. No matter how many teeth, you must divide the diameters of the disks to get the ratio.

In our case, because the change of teeth is from let's say 38 to 46, someone has calculate the average that a teeth will increase the diameter and has given this number. It is an approximately value that sometimes responds to reallity but if you know the right way to calculate it, DIY!