SELECT COUNT * FROM liste

böyle bir sorgu olmaz herhalde count a bir column ataman gerekir

$sayi = mysql_query("select count(idlerim) as toplam from liste");
$sayim = mysql_fetch_assoc($sayi);
$gercek_sayim = $sayim[toplam];