How many times can I edit a question/answer before it automatically gets turned into a community wiki?
Ten, if you are the owner. See this post on the SO meta.
Not so long ago it was announced that posts will be no longer automatically turned into CW. So, unless the rule is changed again, there is no need to worry about this.