Green’s Dictionary of Slang

count the railings v.

to be hungry.

[UK]Sl. Dict. 304: ‘An Irishman’s dinner’ is a low East-end term, and means a smoke and a visit to the urinal. Sometimes the phrase is, ‘I’ll go out and count the railings,’ i.e., the park or area railings, mental instead of maxillary exercise.