How to get file count from folder for last month


I am working on to get file count from folder received for last month. Can anyone help me on this. I have last month 1st day and last day code

First day : Now.AddDays(-1 * (Now.Day - 1)).AddMonths(-1).ToString(“MM/dd/yyyy”)
Last day : New datetime(now.Date.Year,

@Pramod_Mangale Do your file names have the date value in it ? If so, then can you provide some example file names that you have in the folder ?

No, I have list of files with .edi extension, as of now i am taking count manually by selecting date range