Anal sex

Is anal sex counted as a sin before marriage? Or counted as losing your virginity? And does it hurt?