Determine the number of lattice points on the line segment with endpoints (5,23)(5,23)(5,23) and (47,297)(47,297)(47,297). Include both endpoints in your count.