appds_key_match_count

	status.i4.v = appds_key_match_count(table_name.i1a.r, key_value.g.v,
					    match_count.i4.r, error_text.i1a.r,
					    db_name.i1a.r, db_server.i1a.r)

	This routine will count the number of records that match the
	given key value.  The match count is placed in the user 
	supplied match_count variable.  This routine should only be used on
	tables where the first element in the record strucutre is NOT an
	array.  If this is true for the specified table and error will be
	returned.
 
	table_name	name of the APPDS table
	key_value	key to do the comparision
	match_count	number of records that match the given key
	error_text	a pointer to a buffer to where any error messages are 
			placed (Passing a value of NULL indicates that no
			error text is wanted.)
	db_name		name of the database where the APPDS table is found
			(If a value of NULL is passed, the default value of
			APPDS_DEFAULT_DB is used.) 
	db_server	name of the database server 
			(If a value of NULL is passed, the default value of
			APPDS_DEFAULT_SERVER is used.)

	This function returns ACNET status values as follows:

	OK			all data storage table cache released
	SQL_xxx			system error occurred

	This function requires the following include files:

	appds_h, clib_h, acnet_errors_h

	Related functions:

	appds_get_inter_mode, appds_set_inter_mode, appds_read_record,
	appds_write_record, appds_delete_record, appds_set_db_timeout, 
	appds_get_db_timeout