const onlyCountsAsync: InvokeCallbackFunction<OnlyCountsOutput> = (
  state,
  error,
  callback
) => {