There is a general method to count irreducible polynonials of a certain degree with coefficients in any finite field. I think with the first hint you can figure out this method already by yourself, but I left a second hint and a complete solution (for your particular problem) just in case.
Hint: you can count the number of reducible polynomials of degree three and the total number of polynonials of degree three. The difference gives you the number of irreducible polynomials of degree three.
Further hint: if a degree 3 polynomial factors, it does as 3 linear factors or as 1 linear factor and 1 irreducible polynomial of degree 2. You can count the number of irreducible polynomials of degree 2 in the same way: count the reducible ones, which are just the product of two linear factors.
Solution:
There are 3 reducible polynomials of degree 2, namely $x^2$, $x(x+1)$ and $(x+1)^2$. In total there are 4 polynomials of degree 2, so there is only one irreducible polynomail of degree 2.
There are 4 polynomials of degree 3 that factor as 3 linear polynomials, namely $x^3$, $x^2(x+1)$, $x(x+1)^2$ and $(x+1)^3$.
There are 2 polynomials of degree 3 that factor as a linear factor times an irreducible degree 2 polynomial, namely $xf(x)$ and $(x+1)f(x)$, where $f(x)$ is the only irreducible polynomial of degree 2.
In total we have found 6 reducible polynomials of degree 3. There are $2^3=8$ polynomials of degree 3. Hence, there are only 2 irreducible polynomials of degree 3 in $\mathbb{Z}_2[x]$.