Calculates the number of complete cases.

## Arguments

- x
An `R`

object. Currently supported are methods for the
following classes: `mids`

, `data.frame`

and `matrix`

. Also,
`x`

can be a vector.

## Value

Number of elements in `x`

with complete data.

## Author

Stef van Buuren, 2017

## Examples

```
ncc(nhanes) # 13 complete cases
#> [1] 13
```