PR2 is is initialized to 255 on reset.
With Timer2 prescaler & postscaler set to 16, it takes 16*255*16
clock cycles before PIR1.1 is set.
At 4MHz this = 65,280uS.
65,280uS * 350 = 22.848 seconds.
If you need ~5 seconds, increment Counter up to 76.
76 * 65,280uS = roughly 4.961S + whatever program over-head you
have in the process.
P.S. You need Counter to be a "word" size if it's counting past 255,
and you should initialize your Counter variable to 0 before Main, then
clear it once it's reached your max count.
This will never be true since it will roll-over from 255 to 0if Counter = 350 then
Bookmarks