Thanks for showing the code (although it seems you have changed it since
you asked the question originally).
> ____
> This is different error than before and I easily see Put() is
> expecting Integer but has the.. count type; so I need some sort of
> translation to satisfy put(), maybe with and use Text_IO.Integer_IO
> as error message suggest?
Well, yes. But note that the message says you should _instantiate_
Text_IO.Integer_IO, not "with" it. This is because Text_IO.Integer_IO is
not its own library unit, but a generic package nested within Text_IO,
which you already "withed". So the message suggests that you should do
this, somewhere in the declaration part of the body of package combination:
package Count_IO is new Text_IO.Integer_IO (Num => Positive_Count);
and then you can call
Count_IO.Put (row_is);
and so forth. Or, if you add "use Count_IO" after the instantiation, you
can write just Put (row_is).
However, the simplest method for occasional or debugging output is to
use the 'Image attribute to convert a number to text, as for example
Put (row_is'Image);
or (for older Ada versions)
Put (Positive_Count'Image (row_is));
where the "Put" is the Put in Text_IO for strings. With 'Image, you
don't need Text_IO.Integer_IO (but you have less control over the form
of the output).