Detailed Instructions: This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.
Problem:Passage: Barnard Castle has road connections to Bishop Auckland, Spennymoor and central County Durham via the A688 and Darlington, Stockton-on-Tees, and Middlesbrough by the A67. Barnard Castle is also four miles  from the A66, with access to the M6 to the west and the A1 to the east. The B6278 also connects Barnard Castle with Middleton-in-Teesdale. Barnard Castle railway station was closed for passenger trains in 1964. A Bill was approved in 1854 for a line from a junction with the Stockton & Darlington Railway at Darlington to Barnard Castle and opened on 9 July 1856, with intermediate stations at Broomielaw, Winston, Gainford & Piercebridge. The terminus at Darlington only lasted five years.  In 1856 the South Durham & Lancashire Railway proposed a line from Bishop Auckland to Tebay via Barnard Castle and Kirkby Stephen but only the western section was built with the Company receiving its Bill in 1857.  The line opened on 8 August 1861 from a second terminus at Barnard Castle to a junction with the Lancaster & Carlisle Railway at Tebay with intermediate stations at Lartington, Bowes, Barras, Kirkby Stephen, Ravenstondale & Gaisgill. The two stations at Barnard Castle were some distance apart; the earliest station became a through station and closed to passengers on 1 May 1862, but remained in use as a goods depot. The second station was closed for passenger trains under the Beeching cuts in 1964 and completely on 5 April 1965 and the site was eventually built on by Glaxo Smith Kline. Today rail access is via Bishop Auckland, 15 miles  or Darlington, 16 miles . 
Question: How many years after the first Barnard Castle line opened did the second line open? 
Answer type: Number 
Solution:
5.