Get the number of median neighbors of spatial weights

## Arguments

- gda_w
A Weight object

## Value

The number of median neighbors of spatial weights

## Examples

```
if (FALSE) { # \dontrun{
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
median_neighbors(queen_w)
} # }
```