i need to verify that the following algorthims works on the list 2, 3,6,2,6

Begin

input $\displaystyle x_1$ $\displaystyle x_2$...$\displaystyle x_n$

count := 0

fori:= 2 to ndo

begin

forj:=1 to (i-1)do

begin

if$\displaystyle x_i = x_j$then

begin

count := count +1

end

end

output count

end

much thanks