solved the count

SELECT count(*) FROM (SELECT DISTINCT Frequency.docid FROM Frequency WHERE term='parliament')