New count function for SD lib. 

I developed in same manor than openNextfile a new counter function that can count files, folders or hidden files and ofcourse by default count everything.