He has written a lot of his songs, and he and Bernie were not always together.  He has also collaborated with other musicians on different projects, such as with Billy Joel.  On records, the writer is clearly stated and on CD boxes, the liner will tell you who wrote what.