function clone_num = clone_count ( xyz, abc )

%*****************************************************************************80
%
%% clone_count() counts "clones".
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 March 2023
%
%  Author:
%
%    John Burkardt
%
  m = size ( abc, 1 );
  clone_num = 0;
  for i = 1 : m
    rst = sort ( abc(i,1:3) );
    if ( nearly_equal ( sort ( xyz ), rst ) )
      clone_num = clone_num + 1;
    end
  end

  return
end

