add intcount (tested)