Using the following mdx, the result is the same if I run it with or without the where clause : It returns the total nbr of years in the hierarchy.
with member nbYears as [Time].[Year].[Year].count
select nbYears on 0
from [Sales]
where [Time].[2007]