AIP file count factors in deletion.

Added logic to the AIP file count to factor out files for any
AIPs that are pending deletion.