select count(*)
from temp
where ano in (an1,an2,an3,an4,an5)

Eugene
OCP
San Diego