Unable to count total number of active apartments: