How do I get the count of files in SD card interfaced to LPC2378 microcontroller via USB ?

I want to transfer files in SD card interfaced to LPC2378 microcontroller via USB. I want to show the number of files copied in the SD card on an LCD screen.

I am using Keil UVision 4 (Embedded C) and flashing via a JTag.

I am not able understand how do I get the number of files successfully transferred ?

Any help would be appreciated.

TIA

More questions in this forum