Sampling to find uniques in population

#1
The problem I am facing is:

Imagine I have a bag of N marbles, where the value of N is known. In the bag there are k different color marbles. Our goal is to estimate the value of k.

I take a sample of size n. The question is, how can I use this sample data to estimate the value of k?