When you dig, the white number, outlined in red, shows the number of items in the eight adjacent squares (think minesweeper). This includes any items you have already dug up, which are marked by flags.
There should be some option to mark a square yourself if you know that there is (or isn't) an item in the square but you don't want to forget.