Get resources count in header generation