Code cleaning.

Removed the unused global variable named count.