Add support for @Counted annotation