Fixed the SQL count request in admin to obtain the number of elements in each modes.