Data released by the Scottish Government shows that 3,409 certificates of exemption have been issued across the country.