I've come to this: $$f: \mathbb{N} \to \{\ldots, -6,-4,-2,0,2,4,6, \ldots\},\qquad f(n) = \begin{cases} 2n & \text{ if } n \text{ is odd} \\ -n & \text{ if } n \text{ is even} \end{cases}$$
I don't know what to do with this though. I never know how to format a proof correctly.
As I pointed out in the comments, the function that you described is not surjective because $4$ (or any multiple of $4$) has no inverse image.
Assuming you define the set of even integers as, $\mathbb{E} = 2\mathbb{Z} = \{\dots, -6, -4, -2, 0, 2, 4, 6, \dots\}$
and the set of naturals as, $\mathbb{N} = \{0, 1, 2, \dots\}$.
Define $f: \mathbb{N} \to \mathbb{E}$ as $f(n) = \begin{cases} -n, & \text{if $n$ is even} \\ n+1, & \text{if $n$ is odd} \end{cases}$
You need to show that it is one-one and onto. Note that, if, $f(n_1) = f(n_2)$, then either, $n_1+1 = n_2+1$ or $-n_1 = -n_2$, and in both the cases, we get, $n_1 = n_2$. Thus, $f$ is one-one.
To prove its onto-ness, take any element $n$ from the codomain $\mathbb{E}$. Then note that if $n \leq 0$, then $f(-n) = n$ and if $n > 0$, then, $f(n-1) = n$. Since, every element in the codomain has an inverse image, $f$ is onto.
So, we conclude that $\mathbb{E}$ is countable.
Note that, to prove countability of a set $S$, it suffices to prove existence of a one-one map from $S$ to $\mathbb{N}$ (or any other countable set), or an onto map from $\mathbb{N}$ (or any other countable set) to $S$. Bijections are not necessarily required.