More than 10 million people are diagnosed with dementia each year, but a quick test may give some insight to cognitive functioning.