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