The frost(5), Lightning (5) etc. indicates the level of damage, i.e level 5 lightning doing more damage than lightning level 4.
that's the easy part, it's obvious.
now what about the actual details/mathematics?
Raze seems to know everything about DD so i asked him.