Replaced sizeof() with count(), converted spaces to tabs
Fixed code standards