substr_count exact correspond php
$sunCount = preg_match_all('/\bsun\b/i',$string);
Indian Gooner
$sunCount = preg_match_all('/\bsun\b/i',$string);