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