def binstate_to_density(binstate):
    """Converts from binary state to density

	Args:
		binstate (string) : The binary state
	Returns:
		int
	Example:
		>>> binstate_to_density('1110')
		>>> 3
	"""
    return sum(map(int, binstate))
