Casted return of count() to integer.

Count should ALWAYS be integer, not a string.