This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] The images satisfy $f(1)\subsetneq f(2)\subsetneq\ldots\subsetneq f(6)$ (a strictly increasing chain, which is automatically one-one). Assign to each element $x\in S$ the first index $t(x)\in\{1,2,\ldots,6\}$ at which it enters the chain, or $7$ if it never does. The chain is strictly increasing iff each of the values $2,3,4,5,6$ is taken by at least one element. By inclusion-exclusion: $\sum_{j=0}^5(-1)^j\binom5j(7-j)^6=7^6-5\cdot6^6+10\cdot5^6-10\cdot4^6+5\cdot3^6-2^6=117649-233280+156250-40960+3645-64=3240$. Answer: 3240.