Fixed preg_match_all to preg_match for regex count