added var $count to method getTagMedia