Geodesic length and shifted weights in first-passage percolation