add timestamp check in formats.sam.count()