$site=file_get_contents("http://wmaraci.com");
$kelime="forum";
echo substr_count($site,$kelime);
?>

basit bir örnek