Sets up count.