Leonard Stein started at data management company Splunk Inc. in April 2011 as the company’s general counsel and only lawyer. Since then, he’s hired nine more and is looking now for another two.

Silicon Valley’s tech giants are also hiring. A quick search of the websites for Google Inc., Facebook Inc., Apple Inc., Yahoo Inc. and Hewlett-Packard Co. show that all have at least five openings for attorneys.