Police and Crime Commissioner Alison Hernandez said she was delighted after Cornwall councillors voted to defeat a motion of no confidence in her.