Preserving data on rotation, storing out count in SharedPreferences