Sex after Baby

How soon after having your baby did you have sex? Did it hurt? Did you have stitches?