Fixed computing staged files count.