how to use count function in easy and simple way