item.Status.ContainerStatuses.RestartCount doesn't exist. I cannot find the command. Reinstalling the nuget-package or updating it did not work either.
Down there I added the problem I have and the package I use. Sorry if my english is kinda rusty.
ContainerStatuses is a collection of ContainerStatus, not a ContainerStatus itself. You must choose from which container you want the RestartCount, per example:
int restarts = item.Status.ContainerStatuses[0].RestartCount;