Contents of the COUNTLTR.DOC file
DOCUMENTATION FOR COUNTLTR.ARC STEPHEN A. SMITH, D.V.M.
A program from PC Magazine that, when assembled to form FREQ.COM,
will count the letters on the command line and give a list of
how many times each letter occurred.
USAGE: FREQ any number of letters up to the 127 limit
You may want to redirect output to a file or to the printer as the
program quickly scrolls off the screen, e.g., FREQ how many letters >
LPT1 (should be all on one line, though). To assemble the program
with a macro assembler enter the following commands.
EXE2BIN freq freq.com;
(Note: I was able to assemble the program with A86 but had to remove
the first 3 or 4 lines at the top and the last line at the bottom. If
you use A86 it will automatically show where the errors are.)
A program in LOTUS that will count the number of occurences in a line
and list them in the spreadsheet. You can then print out that range.
To use this program just copy it to your LOTUS subdirectory and then
do a /(F)ile(R)etrieve and select the worksheet. Type in the phrase
to count in the cell to the right of the letters "phr" then hold the
ALT key and tap A and the program will do its job.
The idea for this program was sent by me to LOTUS magazine and used
as a contest idea. If you need the issue of the magazine please call
me at the number listed at the end of this documentation.
A program written in Turbo Pascal version 3.02A by a friend of my
father. This program will count letters and numbers. To use it
you must have the program Turbo Pascal. Type TURBO to bring up the
program, type (N)o when it asks about error messages, type (W)ork,
then CONCORDA in response to "WORK FILE NAME:", then turn on your
printer, type (R)un and the type in the line of text. The printer
will type the phrase that you typed in and a list of the letters
with the number of occurrences of each. The program can be changed
to count, say, just the number of upper case letters, or just the
number of lower case letters, or whatever. To change the program
after it has been loaded select E from the operation menu and look
for the line "if LINE[I] in ['0'..'z'] then" and change the '0'..'z'
to whatever code you want, e.g., 'A'..'Z' will count upper case
letters. You must then change the range everywhere it appears in
the code. To get back to the menu hold the CTRL key and tap K then
hold the CTRL key and tap D then hit (or ENTER).
At this point you may be asking yourself "what's the point". Well
if you ever need to count the number of letters in a given phrase
you will find it very difficult to do by hand (try it!). I needed
the programs because the shopping center where my Veterinary Hospital
is located has a sign out front that uses movable letters to spell
out a message. When I would use the sign I had to put the letters
up myself. Knowing how many of each letter I needed made the job
MUCH easier both getting the letters to put up the sign as well as
just knowing ahead of time whether or not I would have enough letters
for the particular message I was going to put up. I hope someone
might find these programs useful. I would be interested in any
comments or if you need help with these programs I can be reached
The Animal Hospital of Lake Shore
4139 Mountain Road
Pasadena, Maryland 21122
(301) 437 7600
Dr. Stephen A. Smith
As you can see, I am a veterinarian and not a computer programmer
or computer software dealer so I cannot support these programs or
be responsible for any problems you may have with them. I do assure
you that they are only what that purport to be and there are no
hidden "gotchas" (i.e., not infected).