Which of the following defines the niche of a species?
A. The number of species and their relative abundance within a community
B. The role of a species in its community as well as the conditions it requires and the interactions it takes part in
C. The type of environment in which a species lives
D. All populations of all species in some area.