function tot=findm4p6count(v,summing)
L01=v(1);
L02=v(2);
L03=v(3);
L12=v(4);
L13=v(5);
L23=v(6);
tot01=0;
tot02=0;
tot03=0;
tot12=0;
tot13=0;
tot23=0;
if nargin < 2
 summing=1;
end
n=2;
e=n*eye(n);
t=2^(n^2)-1;
tot=0;
for i0=0:t
 B0=m4(i0);
 if 1
  for i1=i0:t
   B1=m4(i1);
   if (norm(B1*B0'-L01*B0*B1')==0)
    for i2=i1:t
     B2=m4(i2);
     if (norm(B2*B0'-L02*B0*B2')==0) & (norm(B2*B1'-L12*B1*B2')==0)
      for i3=i2:t
       B3=m4(i3);
       if (norm(B3*B0'-L03*B0*B3')==0) & (norm(B3*B1'-L13*B1*B3')==0) & (norm(B3*B2'-L23*B2*B3')==0) & (summing*norm(B0*B0'+B1*B1'+B2*B2'+B3*B3'-4*e)==0)
        tot=tot+1;
        if i0==i1
         fprintf(' 0 -- 1,')
         tot01=tot01+1;
        end
        if i0==i2
         fprintf(' 0 -- 2,')
         tot02=tot02+1;
        end
        if i0==i3
         fprintf(' 0 -- 3,')
         tot03=tot03+1;
        end
        if i1==i2
         fprintf(' 1 -- 2,')
         tot12=tot12+1;
        end
        if i1==i3
         fprintf(' 1 -- 3,')
         tot13=tot13+1;
        end
        if i2==i3
         fprintf(' 2 -- 3,')
         tot23=tot23+1;
        end
        if i0==i1 | i0==i2 | i0==i3 | i1==i2 | i1==i3 | i2==i3
         fprintf('\n');
        end
       end
      end
     end
    end
   end
  end
 end
end
%fprintf('For L01==%2d, L02==%2d, L03==%2d, L12==%2d, L13==%2d, L23==%2d, total=%8d\n',L01,L02,L03,L12,L13,L23,tot);
fprintf('// Count%1d%1d%1d%1d%1d%1d==%4d,',(L01+1)/2,(L02+1)/2,(L03+1)/2,(L12+1)/2,(L13+1)/2,(L23+1)/2,tot);
fprintf('i0==i1:%4d, i0==i2:%4d, i0==i3:%4d, i1==i2:%4d, i1==i3:%4d, i2==i3:%4d\n',tot01,tot02,tot03,tot12,tot13,tot23);
