SELECT  
 COUNT( * ) AS `total` 
 
FROM 
 `comp`
 
WHERE 
  NOT( ( `name` IS NULL ) OR ( `name` = '' ) )
