Is rental loss included in gross income, or only the rent collected?

If rental expenses exceed income, is the loss included in gross income, or only the rent collected?