Getting an error trying to check how many datasets in my data

Can you elaborate on what you mean by "how many data sets in my data? Ideally, could you provide a proper REPRoducible EXample (reprex) illustrating your issue.