così dovrebbe andare:

SELECT data,ip,COUNT(data) AS numero FROM tabella
GROUP BY ip,data