human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Event, Venue, Driver, Result, Category, Report
###Question: When did Hans Hartmann drive?
gpt
SELECT COUNT Year FROM table WHERE Driver = hans hartmann