The HELLAS2XMM survey. I. The X-ray data and the log N-log S relation