count feature added to inv