 Syntax:

count
item sequence &key fromend start end key test testnot
n
countif
predicate sequence &key fromend start end key
n
countifnot
predicate sequence &key fromend start end key
n
 Arguments and Values:

item  an object.
sequence  a proper sequence.
predicate  a designator for a function of one argument
that returns a generalized boolean.
fromend  a generalized boolean.
The default is false.
test  a designator for a function of two arguments
that returns a generalized boolean.
testnot  a designator for
a function of two arguments
that returns a generalized boolean.
start, end  bounding index designators of sequence.
The defaults for start and end are 0 and nil, respectively.
key  a designator for a function of one argument,
or nil.
n  a nonnegative integer
less than or equal to the length of sequence.
 Description:

count, countif, and countifnot
count and return the number of elements in
the sequence bounded by start and end
that satisfy the test.
The fromend has no direct effect on the result.
However, if fromend is true,
the elements of sequence will be supplied as arguments to
the test,
testnot,
and key in reverse order,
which may change the sideeffects, if any, of those functions.
 Examples:

(count #\a "how many A's are there in here?") 2
(countifnot #'oddp '((1) (2) (3) (4)) :key #'car) 2
(countif #'uppercasep "The Crying of Lot 49" :start 4) 2
 Exceptional Situations:

Should be prepared to signal an error of type typeerror if sequence is not a proper sequence.
 See Also:

Section 17.2 Rules about Test Functions,
Section 3.6 Traversal Rules and Side Effects
 Notes:

The :testnot argument is deprecated.
The function countifnot is deprecated.
 Allegro CL Implementation Details:

None.