Man sentenced to 10 years in cocaine case