implemented partial counter