There are 19 stations in total, counting Shinjo itself. If you are counting only the intermediate stops, that leaves 18 in between.
Worth confirming against a current timetable before you travel, since local and rapid services do not all call at the same stations.