Let $K(n)$ be the number of one-to-one maps $ m: \{ 1, 2, \ldots n \} \leftrightarrow
\{ 1, 2, \ldots n \}$ such that for all $i\leq n$, $m(i) \neq i$.
(The question wishes to find $K(5)$.)
Let $J(n)$ be the number of one-to-one maps $ m: \{ 1, 2, \ldots n \} \leftrightarrow
\{ 1, 2, \ldots n \}$ such that for some (at least one) $i\leq n$, $m(i) = i$.
And let $P(n)$ be the number of one-to-one maps $ m: \{ 1, 2, \ldots n \} \leftrightarrow
\{ 1, 2, \ldots n \}$.
$$
P(n) = n! = K(n) + J(n) $$
Then $K(1) = 0$, $J(1) = 1$, and for all $n>1$:
$$ J(n) = \sum_{k=1}^{n-1} \binom{n}{k} K(n-k) +1\\
K(n) = n! - J(n)
$$
To explain that first equation in words, "to end up with one or more matches, you pick the number of matches ($k$) you want to have, then pick the identities of those $k$ matches among the $n$ possibilities, then find some arrangement of the remaining $n-k$ numbers that gives you no more matches." The one at the end corresponds to choosing to match all $n$ numbers (the identity map); we could equally well instead have extended the sum to $k=n$ if we defined $K(0) = 1$.
Then $$
\begin{array}{ccc}
n&J(n) & K(n) \\
\hline
1 & 1 & 1!-1 = 0\\
2 & \binom{2}{1} 0 + 1 = 1 & 2!-1 = 1 \\
3 & \binom{3}{1} 2 + \binom{3}{2} 0+ 1 = 4 & 3!-4 = 2 \\
4 & \binom{4}{1} 2 + \binom{4}{2} 1+ \binom{4}{3} 0+ 1 = 15 & 4!-15 = 9 \\
5 & \binom{5}{1} 9 + \binom{5}{2} 2+ \binom{5}{3} 1+ 1 = 76 & 5!-76 = 44 \\
\end{array}
$$
THe $K(n)$ are called derangement numbers, and as you see, $K(5) = 44$.