On the cardinality of dense sets