//THIS IS WHAT IM NOT sure of where to put//
I'd suggest that you put that somewhere far, far away.
Look at the blink without delay example to see how to toggle an LED without using the delay() function. Using delay() will block the counter for 5000 seconds times the current count value.