Updating current number of apps properly