Dear chintanshah,
$targetfilepath= "savefiles/myprefix_" . $mvcfile->FileName;
This line means you will save uploaded files to folder "savefiles", you can write code to read folder "savefiles" and check the total file quantity in this folder.
Thank you for asking