A new record of trainspotting has been discovered from 1861, 80 years earlier than the hobby was first thought to have begun.