Dein SQL ist noch nicht fertig.
probier mal.
Code:
<?php
$result = mysql_query("SELECT count(*) FROM coaches WHERE userid=$userid");
$row = mysql_fetch_row($result);
$cnt = $row[0];
?>

Kommentar