/* ======================================================================== *
	         CountNodes.c -- get the number of nodes in an exec list
							       By Talin.
				  Compiled under Manx 5.0 with small code/data
 * ======================================================================== */

#include <std_headers.h>

LONG CountNodes(struct MinList *list)
{	struct MinNode		*n;
	LONG				i;

	for (n = GetHead(list), i = 0; n; n = NextNode(n), i++) ;

	return i;
}
