public class Sample2Impl implements Sample2MXBean {
    private int count = 0;
    private Name user;

    public Sample2Impl(String first, String last) {
        user = new Name(first, last);
    }

    public int getCount() {
        count++;

        return count;
    }

    public Name getUser() {
        return user;
    }
}

