working on countArray.c