$status['indexed']=db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = :entity AND subtype = :bundle",array(':entity'=>$entity_type,':bundle'=>$bundle))->fetchField();
$status['visible']=db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = :entity AND subtype = :bundle AND status = 1 AND access = 1",array(':entity'=>$entity_type,':bundle'=>$bundle))->fetchField();
$status['indexed']=db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = :entity AND subtype = :bundle",array(':entity'=>$entity_type_id,':bundle'=>$bundle))->fetchField();
$status['visible']=db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = :entity AND subtype = :bundle AND status = 1 AND access = 1",array(':entity'=>$entity_type_id,':bundle'=>$bundle))->fetchField();