Complexity of Life and its Dependence on the Environment