Basic Integer and Counter implementation