Get data from php to flash

Hi this should be easy for some of you!

I count words i php and want to use that number I get from the counting in to flash. I get the number but with some more chars…

<?php
$f = file_get_contents('http://www.mydomain.com/file.xml');
$antal = substr_count($f, "<title>");
echo $antal;
?>
t = new LoadVars();
t.load("http://www.mydomain.com/counter.php");
t.onLoad = function (success) {
if (success) {
         trace(t);
    }
};

The trace comes out like this:

** 15=&onLoad=%5Btype%20Function%5D**

“15” is correct but how do i get rid of ther other chars? I just want to have the number “15”.

Please help!