Counting stock pieces in form