Of course they understand. There's even a National Geographic article on animal intelligence, and the star there is an African Grey which knows what does a triangle and a square are, he can count and ask for needs. To prove it wasn't conditioning they gave them different objects to count, always counting succesfully.