added get_sequence_count function to the API