C Program: Count the frequency of each element of an array

In this program, taking 10 numbers from users in an array and find the frequency of each number.

#include<stdio.h>
int main()
{
    int arr[10],freq[10],i,j,count;
    printf("\n enter the 10 element in the array:");
    for(i=0;i<10;i++)
    { 
        scanf("%d",&arr[i]);
        freq[i]=-1;
    }
    for(i=0;i<10;i++)
    {
        count=1;
        for(j=i+1;j<10;j++)
        {   /* count will be increment if dublicate number is found */
            if(arr[i]==arr[j])
            {
                count++;
                freq[j]=0;
            }
        }
        if(freq[i]!=0)
        {
            freq[i]=count;
        }
    }
    for(i=0;i<10;i++)
    {
        if(freq[i]!=0)
        {
            printf("\n%d occurs %d time",arr[i],freq[i]);
        }
    }
	return 0;
}

output

 enter the 10 element in the array:1 1 2 1 2 3 4 3 3 5

1 occurs 3 time
2 occurs 2 time
3 occurs 3 time
4 occurs 1 time
5 occurs 1 time