"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.