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