As a library user, I want to read how many documents are in a CVM file (FCA, DFP, ITR, etc.) so that I can write a progress bar or an alike functionality on my program before reading the files.
Challenge
Because I don't know how many documents are in a CVM file beforehand, I have to read all documents in that file to know it.
Benefit
Information
Acceptance criteria
A function dfpitr_count() returns the count of DFP/ITR documents in a DFP/ITR file.
A function fca_count() returns the count of FCA documents in a FCA file.
Description
As a library user, I want to read how many documents are in a CVM file (FCA, DFP, ITR, etc.) so that I can write a progress bar or an alike functionality on my program before reading the files.
Challenge
Because I don't know how many documents are in a CVM file beforehand, I have to read all documents in that file to know it.
Benefit
Information
Acceptance criteria
dfpitr_count()
returns the count of DFP/ITR documents in a DFP/ITR file.fca_count()
returns the count of FCA documents in a FCA file.