Here is my code
$key) { $i >0; echo $i.\' \'.$key .
If you just need the total number, you could do this:
$tags = explode('|' , $string); $num_tags = count($tags);