How to add leading zeroes to a number in adafruit ssd1306 OLED

so would it be if(count< 1000) append ("0"), and so on and so forth? and do i need to add an int or define?