If a nontoken permanent is put into a graveyard, it doesn’t matter what happens to the permanent card afterward. Ashen Reaper’s ability will count it even if the card has left the graveyard by the time the ability resolves.