Use the database to count the episodes. See https://stackoverflow.com/questions/1656748/how-can-i-fetch-a-single-count-value-from-a-database-with-dbi for explanation of Perl DBI calls.
2.1 KiB
2.1 KiB