Probando con un caso parecido que me ocurrio, termine
con este codigo y me funciono:
<?php
include("conect.php");
$link=Conectarse();
$result=mysql_query("select Count(*)as Total from trabajo",$link);
while($row = mysql_fetch_array($result))
{echo $row[Total];}
mysql_free_result($result);
mysql_close($link);
?>

Espero que te valga ¡¡ Saludos !!