How many as can you find in:
Q: Series -- protagonist only invents when very drunk, puzzled by inventions when sobered A series of short stories, collected in a book, circa 1950..1958. 
Protagonists name is Gallagher. In a typical story, he gets a development comission, gets drunk on beer, wakes up to discover that he has built a device, and has to figure out how it solves his clients problem. 
He is accompanied by a robot that he built while under the influence. He doesnt know the purpose of the robot but does not dare dismantle it. 

A: These are by Henry Kuttner, and are indeed known as the Gallegher series.
The book may have been Robots Have No Tails or The Proud Robot, both of which collect the stories. (The contents of the books appear to be identical except that the later one has an introduction).
(Note: Lewis Padgett is a pseudonym used by Kuttner)



user
In that passage, there are 42 occurrences of the letter "a."
assistant