Return number of warning levels should include level 0

Resolves #68