Counter Problem Solved

May possible have to change the counter to a function.