first of all you dont need to repeat that $1 is count
second if ur gonna put more snippets, take the first * out of the trigger
third, im confused why you put the $left
also like napa said, take out the halt