In the example you give, "billion" is a modifying adjective (It modifies "years"). It is singular. It works the same way as any other modifying adjective: I see 12 fat green cows.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.