Studious parrot learns how to count