Does posting papers on Academia.edu count as publishing?

Since nobody wrote it in an answer, I'll do it: the answer to your question depends on the journal, but in each field most journal would have about the same policy.

In some fields (e.g. mathematics, high energy physics), the answer is 'no': posting a preprint in Academia.edu, the arXiv, or on your web page does not prevent you to have your work published by a journal. Many publishers will even allow you to update your public preprint according to the referee's comments, only keeping the publisher-formated version behind a paywall (not all of them though: Oxford University Press has a very damaging policy in this regard).

In other fields (e.g. some humanities at least in some countries, chemistry) the answer is often 'yes': many journal would reject your paper right away on the ground that it already has been "published" in the sense of being made public. Even if they don't check, they may ask you to pledge that you did not published the material previously in that broad sense, and lying on these kind of issue may be devastating to a career.

In other circumstances, the answer may be more subtle. Some very prestigious magazines as Nature, Science, PNAS may ask for some publications that the authors keep them secret until the journals communicates about the work. This is to ensure maximum media coverage, but of course it concerns only the very small portion of academic works that is considered both as very important for the field, and of great interest of a general audience.