PS I can't be bothered counting through the closing brackets to place echo $count at exactly the right place, so it might be later in your code. Try moving it down one closing bracket at a time yourself if it doesn't appear or appears several times.
HarBeK commented: Agree 100% +0
drjohn 56 Posting Pro in Training
naeemnur commented: Sir, you are my hero! +1