Add cardByType
type first, then state
Add type to @param
Merge pull request #349 from pgarrison/master

Get number of jobs with given state and type.