Define a class "A" having a private field "int a" and guarantee that at any moment of time there are no more than 10 instances of that class in a program, having different "a" value.