How accurate does it need to be?
Code:
for(int i = 5; i > 0; i--) {
    // Do something
    Sleep(1000); // Pause for 1 second
}