You are not clearing the screen. The 0 from the "10" remains on the screen when you print shorter strings. Simplest fix is to clear by writing a few spaces that overwrite old content:
sprintf(buff, "%d", value);
->
sprintf(buff, "%d ", value);
(notice the added two spaces, which are good up to count 999)
Another option is to use an LCD clear command, but that might cause some flicker, depending on the LCD, so sometimes clearing just the space needed with spaces is the best option.
Yet another option is to use something like %3d instead of %d, which makes the printf itself append spaces at the beginning, right-aligning the number. Or %03d if you want zero-padding, like 007.
Other comments:
* If your number is never negative, use unsigned int instead, and %u instead of %d. This way it is obvious that - will be never printed
* If you have a 32-bit MCU, printing an int can produce up to 11 characters (e.g., -2000000000), which will overrun your 10-byte buffer, so:
* Use snprintf(buff, sizeof buff, "%d", value) instead. Standard sprintf will overwrite other things in memory, causing any weird and hard-to-debug bugs, if the string is longer than buff, which easily happens by accident.