Fixing the logic on count. Making sure k is at least 2