I do believe this is a matter of simple math.
Surely, you know your starting x / y values, and your ending x / y values. To get the distance between the two, you do this:
dist = sqrt(dx^2 + dy^2 )
Where dx is the difference between the x-coordinates of the points
Where dy is the difference between y-coordinates of the points.
So, for example. Lets say co-ordinate A is A(15,20) and co-ordinate B is B(35,5);
dx = 35 - 15 = 20;
dy = 20-5 = 15;
Therefore;
dist between AB = sqrt(20^2 + 15^2)
= 25.0 units.
Now for your final answer, this depends how many units a "step" is in your program. If a step is 5 units, (25/5) than there is 5 steps needed to get from point A to B.