added count for check bit status