space counting