SELECT count(*)
FROM (frequency) x
WHERE docid='10398_txt_earn'
;
