Add comma in between the Tags Display in Drupal 7 Can any one help me how to add comma inbetween the tags in drupal 7.

I have inspect the code  for the following tags

Tags: Test bha


the code for this is 

         &lt;DIV class="tagsdisplay" &gt;
             &lt;DIV class="label-inline"&gt;Tags:&amp;nbsp;&lt;/DIV&gt;
                &lt;A  href="http://localhost/drupal/tags/test" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;Test&lt;/A&gt;
                &lt;A href="http://localhost/drupal/tags/bha" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;bha&lt;/A&gt;
              &lt;/DIV&gt;
         &lt;/DIV&gt;


I have used used the following code to add the comma inbetween the tags

              function fold__field_tags($variables) {

                   $output = '';

              // Subtract 1 from count to match $delta which starts at 0
               $count = (count($variables['items']) - 1);

              // Render the label, if it's not hidden.
              if (!$variables['label_hidden']) {
             $output .= '&lt;div class="label-inline"' . $variables['title_attributes'] . '&gt;' . $variables['label'] . ':&amp;nbsp;&lt;/div&gt;';
                 }

           // Render the items.
          $output .= '&lt;div class="label-inline"' . $variables['content_attributes'] . '&gt;';
          foreach ($variables['items'] as $delta =&gt; $item) {
          $classes = 'field-item ' . ($delta % 2 ? 'odd' : 'even');
          $output .= '&lt;div class="' . $classes . '"' . $variables['item_attributes'][$delta] . '&gt;' . drupal_render($item) . '&lt;/div&gt;';
         // If this is not the last item, print a comma and space
         if($delta &lt; $count) {
          $output .= ', ';
         }
         }
       $output .= '&lt;/div&gt;';

    // Render the top-level DIV.
      $output = '&lt;div class="' . $variables['classes'] . '"' . $variables['attributes'] . '&gt;' . $output . '&lt;/div&gt;';

      return $output;

    }


Can Anyone help me where i made a mistake.
For anyone who needs to do this in the future:

div.field-name-field-tags div.field-items div:after {
  content: ", ";
}

div.field-name-field-tags div.field-items div:last-child:after {
  content: "";
}