function n=acount(m,k,j), 
	if nargin<3, j=0; end
	if m<j || m>k, n=k+1; else n=m; end; end
