Improve brick count input and parsing.