How long can dog live with dementia