If I hit a bad shot and take a mulligan from the same spot will it count both strokes?

If I hit a bad drive, take a mulligan from the same spot (without entering the club for the first bad shot) will it count both strokes?