"The number of Goblins it devoured" means "The number of Goblins sacrificed as a result of its devour ability as it entered." For each creature that Voracious Dragon devoured, this ability checks its creature type as it last existed on the battlefield to see if it was a Goblin at that time.

Artwork
Loading artwork…
Voracious Dragon
The List · #CON-75 · EN
Nonfoil—Foil—
Card rules
Flying
Devour 1 (As this creature enters, you may sacrifice any number of creatures. It enters with that many +1/+1 counters on it.)
When this creature enters, it deals damage to any target equal to twice the number of Goblins it devoured.
4/4
Rare · Illustrated by Dominick Domingo
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Voracious Dragon can devour any type of creatures, not just Goblins.