Here’s how to determine it:
Six eggs were your starting point.
Two eggs were broken by you.
You fried two eggs, which may or may not be the same eggs that you broke.
You consumed two eggs, which might have been different eggs or the same ones you fried.
Let’s dissect it:
Two eggs were broken by you. You now have four eggs remaining.
Two eggs were fried by you. You still have four eggs left if you fried the ones you broke, but two of them are now cooked. Two of the four eggs would be cooked if they were fried separately.
You consumed two eggs. You would have two eggs if you ate the ones you fried (assuming the fried eggs were different from the consumed ones). You have four eggs remaining if you ate the fried ones—two cooked and two uncooked.
In conclusion:
You would have two eggs left over if you fried and then ate the same eggs.
Four eggs remain after frying and eating different eggs.
Whether or not the eggs you cooked were the ones you consumed will determine the precise number.