Add getting the number of FileItems in history