The answer is $n!$, i.e. the number of permutation on ${1,\dots,n}$.
Note that $|f(A)|=|A|$ for all sets. Let $\sigma$ be the map given by $f(\{i\})=\{\sigma(i)\}$; $\sigma$ is well-defined as $f$ preserves the size of the set. Also, $\sigma$ is bijection as $f(\{i\}) \cap f(\{j\})$ is the empty-set for distinct $i,j$.
Note that for any $A$, if $i \in A$ we have $|f(A)\cap \{\sigma(i)\}| = |A \cap \{i\}| = 1$, so $\sigma(i) \in A$. Converesely, if $i \not \in A$ we have $|f(A)\cap \{\sigma(i)\}| = 0$, so $\sigma(i) \not \in A$. Hence, $f(A)=\{\sigma(i) : i \in A\}$. In particular, any function is uniquely defined by its image on the $n$ singleton sets $\{1\}, \dots, \{n\}$, and conversely any permutation can be extended to a valid function in this way. Thus the set of such functions bijects with permutations on ${1,\dots,n}$, which completes the proof.