Puoi limitare il conteggio per gruppo con LEAST:
SELECT USERid, LEAST(7, COUNT(*))
FROM table
GROUP BY USERid;
E per sommare i conteggi limitati:
SELECT SUM(countByUser)
FROM (
SELECT LEAST(7, COUNT(*)) AS countByUser
FROM table
GROUP BY USERid
) c;