Adds a function for Part 1 to calculate the number of steps