Add the sample of count function.