Android changes:
- using long instead of integer for count now