The number of sex offenders living in Edinburgh and the Lothians has been revealed.