SELECT COUNT(DISTINCT NAME) AS 'count' FROM ANIMAL_INS WHERE NAME IS NOT NULL
select count(*) from (select distinct NAME from ANIMAL_INS) a where name is not null
select count(a.name) from (SELECT name from ANIMAL_INS group by name) a