A man convicted of 48 burglaries including crimes in Farnham and Woking has been sentenced to five years in prison.