You choose the target player as the ability goes on the stack, but you determine the value of X as that ability resolves. If you target yourself and Corpse Augur is still in the graveyard, its ability will count itself.