Edit: A new method has been discovered by @BlaDe to fix the results of this bug for all players on all platforms.
Simply enter the "/recountnuts" chat command into the chat box.
On PC pressing T opens it by default. It can also be opened by simply pressing the "/" key which will begin the chat...