Returning total entries with cursor (Android implementation)