Hey esm, if you want to pull the latest value from a timeseries you could do something like:
timeseries count = count(dt.host.availability)
| fields count = arrayLast(count)
This would return 1 field called count containing the latest value. For more information regarding available array functions including examples you can find them here: Array functions — Dynatrace Docs