There are twenty-four counties and Baltimore City in the U.S. state of Maryland. Though an independent city rather than a county, the City of Baltimore by some is considered the equal of a county for most purposes and is a county-equivalent. 