I have the same problem.
I tried this on two different Macs (Leopard and Leopard Server). still same...
Only the dock icon shows the correct number.
The number next to Inbox is stuck at 286 ?
Try selecting all messages in the inbox (Apple+A) and then marking all as read (Shift+Apple+U). Hopefully then both counters will display no new messages