human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Artist, Country, Number-one single(s), Year, Weeks at #1, Straight to #1 ?
###Question: How many years have a weeks at #1 value of exactly 8?
gpt
SELECT COUNT Year FROM table WHERE Weeks at #1 = 8