Biostratigraphy in the geological record