No, usually it won't get a counter, since the check happens when the spell isn't in the graveyard anymore. See the rulings below the card in Gatherer:

> If you cast an instant or sorcery spell from your graveyard (due to an ability such as flashback, for example), Pyromancer Ascension’s first ability won’t trigger unless another card with the same name is in your graveyard.