There are seven legal genders. They are male, female, gender-fluid, agender, bigender, pangender and trigender.
The UK is one of the most progressive countries in terms of recognising the rights of transgender people. It makes it easier for them to change their gender on their birth certificate and other documents like driving licenses and passports.