Added post-increment for $count

It has been added the missing post-increment for variable $count.