evaluate class number