Settings page counter logic