Mike Lovett/Brandeis University Alex, a 31-year-old African gray parrot, knew more than 100 words and could count and recognize colors and shapes. By BENEDICT CAREY He knew his colors and shapes, he learned more than 100 English words, and with his own brand of one-liners he…