It would count as credit units up to the 70 semester unit or 105 quarter unit maximum.
It may also count for more generic subject requirements. E.g. a transferable history course that is not directly equivalent to anything may count toward a requirement that specifies a history course but does not require a specific one. But check with the campus, division, or major department to verify whether it is true for your situation.