$contar_favoritos = mysql_result(mysql_query("SELECT COUNT(*) FROM favoritos WHERE usuario = ".$user->get_property('id')));