Lo pongo como me dices quedandome asi:
  Código PHP:
     $destino = "numero.dat";
  $abrir = fopen($destino,"r");
  $cuenta = trim(fread($abrir,filesize($destino)));
  
  if ($cuenta != "") $cuenta++;
  else $cuenta = 1;
  @fclose($abrir);
  $abrir = fopen($destino,"w");
  @fputs($abrir,$cuenta);
  for($i=0;$i<strlen($cuenta);$i++) { 
    echo "<img alt='../JPG/".$cuenta{$i}." ' src='../JPG/".$cuenta{$i}.".gif'>";
    }
  @fclose($abrir);
  print $contador; 
    
  pero no me carga las imagenes de los numeros me mustra solo la X roja