Get the number of available devices for the backend specified.
Backend to use. Should be one of * BACKEND_CPU * BACKEND_GPU