human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Locomotive, Type, Builder, Builder's No., Built, Entered service, Withdrawn
###Question: How many years entered service when there were 13 locomotives?
gpt
SELECT COUNT Entered service FROM table WHERE Locomotive = 13