Create countOccursInList.c