add bitmap count function, but there is no main now. add it later