Deleted posts don't contribute to the edit count.
- Deleting a post will decrease your edit count if you had edits on it.
- Editing a deleted post will not affect your edit count.
- Undeleting a post will increase your edit count if you had edits on it.
Rollbacks don't affect other edits. They actually count as 1 edit.
Changing the post to a community wiki post doesn't affect edit count.
De-attributing yourself from a post will decrease your edit count accordingly (rare process requiring admin powers above the elected ♦ powers).
"Strunk & White" is a kind of badge that you can't lose, even if you later fall below the requirement to get it.
Deleting and undeleting also affect reputation gains through approved edits in a review queue, as demonstrated by jps:
- This suggested edit granted 2 reputation to jps on Sep 2 '17.
- The 2 points are now missing from jps reputation for that day, since the question is deleted.
But note that reputation earned through edits for posts with a score of 3 or higher, and where the post has been visible on the site for at least 60 days, may be retained if we follow the logic of How does deleting work? What can cause a post to be deleted, and what does that actually mean? What are the criteria for deletion?.