Ver http://dev.mysql.com/doc/ refman/5.0/en/contar-filas.html
Entonces su consulta sería
SELECT session_id, COUNT(*)
FROM gallery_list
GROUP BY session_id
Ver http://dev.mysql.com/doc/ refman/5.0/en/contar-filas.html
Entonces su consulta sería
SELECT session_id, COUNT(*)
FROM gallery_list
GROUP BY session_id