Hint #1
There’s a pun in that statement.
Hint #2
The equations are not mathematical at all.
Hint #3
Focus on the shapes of the numbers.
Answer
8

The answer to each is the number of holes found in the numbers.  For example:
0, 6, and 9 all have one round hole.
8 has two round holes.
All other numbers have no round holes.