Its all up the spout apart from 4 bars means Captain.
The ones that are completely company issue and depends on the bosses view on the bars. One company I worked for issued 3 bars to the FO's purely becuse BA only gives thier's 2 mucky silver things. He thought 3 gold made the uniform look better than there's. All nonsense in the grand scale of things